package com.winning.java.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author: rqx
 * @create: 2021/7/5 15:16
 * @description:
 */
@Configuration
public class InterceptorConfig implements WebMvcConfigurer {
    /**
     * @param registry:
     * @return void
     * @author rqx
     * @date 2023/1/29 10:59
     * 设置默认首页
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("redirect:/swagger-ui/index.html");
    }
}
